package com.lwlk.zdk.model.task;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class pwTaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwTaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodIsNull() {
            addCriterion("assess_period is null");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodIsNotNull() {
            addCriterion("assess_period is not null");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodEqualTo(String value) {
            addCriterion("assess_period =", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodNotEqualTo(String value) {
            addCriterion("assess_period <>", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodGreaterThan(String value) {
            addCriterion("assess_period >", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodGreaterThanOrEqualTo(String value) {
            addCriterion("assess_period >=", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodLessThan(String value) {
            addCriterion("assess_period <", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodLessThanOrEqualTo(String value) {
            addCriterion("assess_period <=", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodLike(String value) {
            addCriterion("assess_period like", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodNotLike(String value) {
            addCriterion("assess_period not like", value, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodIn(List<String> values) {
            addCriterion("assess_period in", values, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodNotIn(List<String> values) {
            addCriterion("assess_period not in", values, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodBetween(String value1, String value2) {
            addCriterion("assess_period between", value1, value2, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andAssessPeriodNotBetween(String value1, String value2) {
            addCriterion("assess_period not between", value1, value2, "assessPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodIsNull() {
            addCriterion("period_period is null");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodIsNotNull() {
            addCriterion("period_period is not null");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodEqualTo(String value) {
            addCriterion("period_period =", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodNotEqualTo(String value) {
            addCriterion("period_period <>", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodGreaterThan(String value) {
            addCriterion("period_period >", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodGreaterThanOrEqualTo(String value) {
            addCriterion("period_period >=", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodLessThan(String value) {
            addCriterion("period_period <", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodLessThanOrEqualTo(String value) {
            addCriterion("period_period <=", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodLike(String value) {
            addCriterion("period_period like", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodNotLike(String value) {
            addCriterion("period_period not like", value, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodIn(List<String> values) {
            addCriterion("period_period in", values, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodNotIn(List<String> values) {
            addCriterion("period_period not in", values, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodBetween(String value1, String value2) {
            addCriterion("period_period between", value1, value2, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodPeriodNotBetween(String value1, String value2) {
            addCriterion("period_period not between", value1, value2, "periodPeriod");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIsNull() {
            addCriterion("check_time is null");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIsNotNull() {
            addCriterion("check_time is not null");
            return (Criteria) this;
        }

        public Criteria andCheckTimeEqualTo(Date value) {
            addCriterion("check_time =", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotEqualTo(Date value) {
            addCriterion("check_time <>", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeGreaterThan(Date value) {
            addCriterion("check_time >", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("check_time >=", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeLessThan(Date value) {
            addCriterion("check_time <", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeLessThanOrEqualTo(Date value) {
            addCriterion("check_time <=", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIn(List<Date> values) {
            addCriterion("check_time in", values, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotIn(List<Date> values) {
            addCriterion("check_time not in", values, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeBetween(Date value1, Date value2) {
            addCriterion("check_time between", value1, value2, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotBetween(Date value1, Date value2) {
            addCriterion("check_time not between", value1, value2, "checkTime");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIsNull() {
            addCriterion("issue_type is null");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIsNotNull() {
            addCriterion("issue_type is not null");
            return (Criteria) this;
        }

        public Criteria andIssueTypeEqualTo(String value) {
            addCriterion("issue_type =", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotEqualTo(String value) {
            addCriterion("issue_type <>", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeGreaterThan(String value) {
            addCriterion("issue_type >", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeGreaterThanOrEqualTo(String value) {
            addCriterion("issue_type >=", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLessThan(String value) {
            addCriterion("issue_type <", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLessThanOrEqualTo(String value) {
            addCriterion("issue_type <=", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLike(String value) {
            addCriterion("issue_type like", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotLike(String value) {
            addCriterion("issue_type not like", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIn(List<String> values) {
            addCriterion("issue_type in", values, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotIn(List<String> values) {
            addCriterion("issue_type not in", values, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeBetween(String value1, String value2) {
            addCriterion("issue_type between", value1, value2, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotBetween(String value1, String value2) {
            addCriterion("issue_type not between", value1, value2, "issueType");
            return (Criteria) this;
        }

        public Criteria andAssessObjectIsNull() {
            addCriterion("assess_object is null");
            return (Criteria) this;
        }

        public Criteria andAssessObjectIsNotNull() {
            addCriterion("assess_object is not null");
            return (Criteria) this;
        }

        public Criteria andAssessObjectEqualTo(String value) {
            addCriterion("assess_object =", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectNotEqualTo(String value) {
            addCriterion("assess_object <>", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectGreaterThan(String value) {
            addCriterion("assess_object >", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectGreaterThanOrEqualTo(String value) {
            addCriterion("assess_object >=", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectLessThan(String value) {
            addCriterion("assess_object <", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectLessThanOrEqualTo(String value) {
            addCriterion("assess_object <=", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectLike(String value) {
            addCriterion("assess_object like", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectNotLike(String value) {
            addCriterion("assess_object not like", value, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectIn(List<String> values) {
            addCriterion("assess_object in", values, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectNotIn(List<String> values) {
            addCriterion("assess_object not in", values, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectBetween(String value1, String value2) {
            addCriterion("assess_object between", value1, value2, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectNotBetween(String value1, String value2) {
            addCriterion("assess_object not between", value1, value2, "assessObject");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsIsNull() {
            addCriterion("assess_object_details is null");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsIsNotNull() {
            addCriterion("assess_object_details is not null");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsEqualTo(String value) {
            addCriterion("assess_object_details =", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsNotEqualTo(String value) {
            addCriterion("assess_object_details <>", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsGreaterThan(String value) {
            addCriterion("assess_object_details >", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsGreaterThanOrEqualTo(String value) {
            addCriterion("assess_object_details >=", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsLessThan(String value) {
            addCriterion("assess_object_details <", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsLessThanOrEqualTo(String value) {
            addCriterion("assess_object_details <=", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsLike(String value) {
            addCriterion("assess_object_details like", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsNotLike(String value) {
            addCriterion("assess_object_details not like", value, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsIn(List<String> values) {
            addCriterion("assess_object_details in", values, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsNotIn(List<String> values) {
            addCriterion("assess_object_details not in", values, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsBetween(String value1, String value2) {
            addCriterion("assess_object_details between", value1, value2, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andAssessObjectDetailsNotBetween(String value1, String value2) {
            addCriterion("assess_object_details not between", value1, value2, "assessObjectDetails");
            return (Criteria) this;
        }

        public Criteria andChdIdIsNull() {
            addCriterion("chd_id is null");
            return (Criteria) this;
        }

        public Criteria andChdIdIsNotNull() {
            addCriterion("chd_id is not null");
            return (Criteria) this;
        }

        public Criteria andChdIdEqualTo(Integer value) {
            addCriterion("chd_id =", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdNotEqualTo(Integer value) {
            addCriterion("chd_id <>", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdGreaterThan(Integer value) {
            addCriterion("chd_id >", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("chd_id >=", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdLessThan(Integer value) {
            addCriterion("chd_id <", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdLessThanOrEqualTo(Integer value) {
            addCriterion("chd_id <=", value, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdIn(List<Integer> values) {
            addCriterion("chd_id in", values, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdNotIn(List<Integer> values) {
            addCriterion("chd_id not in", values, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdBetween(Integer value1, Integer value2) {
            addCriterion("chd_id between", value1, value2, "chdId");
            return (Criteria) this;
        }

        public Criteria andChdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("chd_id not between", value1, value2, "chdId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}